package xyz.dfm.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import xyz.dfm.pojo.User;

import java.util.List;

@FeignClient(name="dfm-admin", contextId = "userMapperRemote")
public interface UserMapperRemote {

    @GetMapping("/findUserByName")
    User selectUserByUsername(String username);

    @GetMapping("/findPermissionById")
    List<String> selectUserPermission(Integer id);
}
